package com.swh.controller.business;

import com.github.pagehelper.PageInfo;
import com.swh.entity.Examine;
import com.swh.entity.QualificationCondition;
import com.swh.service.ExamineService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Author: swh
 * @Description:
 * @Date: 2020/12/14 14:41
 * @Version: 1.0
 */
@Controller
@RequestMapping("/guguanjia/examine")
public class ExamineController {

    @Autowired
    private ExamineService examineService;

    @RequestMapping("/index")
    public String login() {
        return "/examine/index";
    }

    @RequestMapping("/findAll/{pageNum}/{pageSize}")
    @ResponseBody
    public PageInfo<Examine> findAll(@PathVariable("pageNum") int pageNum, @PathVariable("pageSize") int pageSize,
                                     QualificationCondition condition) {
        return examineService.selectPage(pageNum, pageSize,condition);
    }






}
